import request, { defaultCacheAge } from '@/utils/request'

/**
 * 免费API
 */
export function useFreeApi() {
  return {

    /**
     * 热搜聚合
     * @constructor
     */
    get_hot_list_all<T = any>() {
      return request<T>({
        url: 'https://api.vvhan.com/api/hotlist/all',
        method: 'get',
        cacheAge: defaultCacheAge
      })
    }
  }
}
